<template>
  <div class="container">
    <div class="top">
      <van-nav-bar

          left-text="返回"
          left-arrow
          @click-left="onClickLeft"
      />
    </div>
    <div class="total">
      <div> 共有记录</div>
      <span> 8条</span>
    </div>

    <div class="body">
      <div class="title">
        游戏兑换记录
      </div>
      <div class="item">
        <div class="name">网址戎荣耀</div>
        <div class="score">3积分</div>
        <div class="time">2023 12 11 10</div>
      </div>
    </div>
  </div>
</template>


<script setup>
import {useRouter} from "vue-router";
const router = useRouter();
const onClickLeft =()=>{
  router.back()
}
</script>

<style scoped lang="less">
.top {
  width: 100%;
  margin: 0 auto;
}

.total {
   margin:20px auto;
  border-radius: 10px;
  border: 0 solid black;
  background-color: #EEA36B;
  width: 98%;
  height: 100px;
  color: #ffffff;
  font-size: 20px;
  line-height: 30px;

  div {
    margin-top: 20px;
  }

  span {
    font-size: 30px;
    font-weight: 700;
  }
}

.body {
  width: 90%;
  margin: 10px auto;
  text-align: start;

  .title {
    height: 50px;
    display: flex;
    align-items: center;
    text-indent: 1em;
    color: black;
    font-size: 20px;
    letter-spacing: 3px;

    border-left: 5px solid #EEA36B;
    width: 100%;
    margin-bottom: 20px;

  }

  .item {
    display: flex;
    width: 100%;
    height: 50px;
    border-bottom:1px solid #F2F6FC ;
    text-align: start;

    div {
      width: 33%;
    }
  }

}
</style>